clear all; close all;

x = -1.15:0.01:1.15;
y = zeros(1,length(x));
idx = abs(x) < 1;
y(idx) = 1 - abs(x(idx));
plot(x,y);
xlabel('x');
ylabel('u(x)');
% axis tight;
xlim([-1.15,1.15]);
ylim([-0.1,1.1]);
% x = -2.1:0.01:2.1;
% y = CubicConvIntrp3(x);
% plot(x,y);
% xlabel('x');
% ylabel('u(x)');
% xlim([-2.1,2.1]);
% ylim([-0.1,1.1]);